<!-- layui 引入文件 -->
<#include "path.ftl" />
<script type="text/javascript" src="${path}/plug-in/layuiadmin/layui/layui.js"></script>
<link rel="stylesheet" type="text/css" href="${path}/plug-in/layuiadmin/layui/css/layui.css"/>
<link rel="stylesheet" type="text/css" href="${path}/plug-in/layuiadmin/style/admin.css">
<style>
	.layui-unselect .layui-form-checkbox{
		padding-left: 15px;
	}
</style>
<script type="text/javascript">
;layui.use(['layer','jquery'],function () {
	var layer = layui.layer,
			$ = layui.jquery;

	/*设置AJAX全局属性，部分覆盖此方法的AJAX不做监听 */
	$.ajaxSetup({
		contentType:"application/x-www-form-urlencoded;charset=utf-8",
		complete:function(XMLHttpRequest,textStatus){
			var data = XMLHttpRequest.responseText;
			if(data && data=='timeout' ){
				return layer.msg('超时了，请点击右上角重新登录系统！');
			}
		}
	});
	/**
	 * 扩展序列化方法
	 */
	$.fn.serializeObject = function() {
		var o = {}, a = this.serializeArray();
		$.each(a, function() {
			if (o[this.name] !== undefined) {
				if (!o[this.name].push) { o[this.name] = [ o[this.name] ]; }
				o[this.name].push(this.value || '');
			} else { o[this.name] = this.value || ''; }
		});
		return o;
	};
});
</script>


